/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */



import diiner.common.webaccess.DinnerService;
import diiner.common.webaccess.DinnerServiceService;
import diiner.common.webaccess.UnAutorizationException_Exception;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import static org.junit.Assert.*;

/**
 *
 * @author Bizon
 */
public class WebTest {

    public WebTest() {
    }

    @BeforeClass
    public static void setUpClass() throws Exception {
    }

    @AfterClass
    public static void tearDownClass() throws Exception {
    }

    @Before
    public void setUp() {
    }

    @After
    public void tearDown() {
    }


    // TODO add test methods here.
    // The methods must be annotated with annotation @Test. For example:
    //
     @Test
    public void hello() {
         DinnerService service = new DinnerServiceService().getDinnerServicePort();
         assertNotNull(service);
        try {
            service.login("adminko", "123");
        } catch (UnAutorizationException_Exception ex) {
            Logger.getLogger(WebTest.class.getName()).log(Level.SEVERE, null, ex);
        }
     }

}